class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age


"""
dir(person)=
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', 
'__eq__', '__firstlineno__', '__format__', '__ge__', '__getattribute__', 
'__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', 
'__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', 
'__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', 
'__static_attributes__', '__str__', '__subclasshook__', '__weakref__', 
'age', 'name']
"""
person = Person("linda", 89)
print(dir(person))


class Parent:
    score = 100

    def __contains__(self, item):
        print(f"item={item}")
        return item == self.score


class Child(Parent):
    pass


child = Child()

print(100 in child)
